using System.Collections;
using System.Collections.Generic;
using Animancer;
using UnityEngine;

public class AnimController : MonoBehaviour
{
    public AnimancerComponent Animancer;
    public ClipTransition Walk;
    public ClipTransition Run;
    public ClipTransition Jump;
    public ClipTransition Dance;

    public void PlayWalk()
    {
        if (!Animancer.IsPlaying(Walk))
        {
            Animancer.Play(Walk);

        }
    }
    public void PlayDance()
    {
        if (!Animancer.IsPlaying(Dance))
        {
            Animancer.Play(Dance);
        }
    }
    public void PlayRun()
    {
        if (!Animancer.IsPlaying(Run))
        {
           Animancer.Play(Run);
        }
    }
    public void PlayJump()
    {
        if (!Animancer.IsPlaying(Jump))
        {
             Animancer.Play(Jump);
        }
    }
}
